{% extends 'base.html' %}

{% block content %}
</p>

    <div class="container mt-5">
        <div class="row justify-content-center">
            <div class="col-md-4">
                <form method="post">
                    <div class="mb-3">
                        <label for="username" class="form-label">Username</label>
                        <input type="text" class="form-control" id="username" placeholder="Enter your username" name="username">
                    </div>
                    <div class="mb-3">
                        <label for="password" class="form-label">Password</label>
                        <input type="password" class="form-control" id="password" placeholder="Enter your password" name="password">
                    </div>
                    <div class="mb-3">
                        <label for="captcha" class="form-label">Captcha</label>
                        <div class="input-group">
                            <input type="text" class="form-control" id="captcha"  width="50px" placeholder="Enter captcha" name="captcha">
                            <div class="input-group-append">
<img src="{{ url_for('captcha') }}" alt="Captcha" style="margin-left: 10px;" onclick="this.src='/captcha?'+ Math.random()"/>
                            </div>
                        </div>
                    </div>
                    <button type="submit" class="btn btn-primary">Login</button>
                </form>
            </div>
        </div>
    </div>

</form>



{% endblock %}